# -*- coding: utf-8 -*-
"""
@author: 木头人
@time: 2024/5/9 10:43
"""
from django.urls import re_path, path

from remote import views
from django.urls import path, include, re_path
from django.views.static import serve
from ts import settings

urlpatterns = [
    ## 加载文件地址
    re_path(r'^static/(?P<path>.*)$', serve, {'document_root': settings.STATIC_ROOT},name='static'),
    path('',views.index),
    path('app/index/',views.index1),
    path('app/books/',views.books),
    path('app/indexs/', views.index2, name="index2"),
    path('app/beautiful/', views.index3, name="index3"),

    ## 测试是否可以读取到数据库的数据数据
    path('app/db/', views.index4, name="index4"),

    ## sql 查询
    path('app/sqldb/',views.sqlquery.as_view())
]